{{extend 'layout.html'}}
<h1>{{=resource.title}}</h1>
 {{if len(comments):}}
<h2>留言</h2><br /><p>
{{for comment in comments:}}
<p>{{=comment.created_on}} {{=comment.author }} ： <i>{{=comment.body}}</i></p>
{{pass}}
{{else:}}
<h2>还没有留言哦！</h2>
{{pass}}
<a href="/myweb/default/index/{{=resource.id}}" class="btn btn-secondary">返回</a>
{{=form}}
